cmake_minimum_required(VERSION 3.0.2)
project(uav_drone_msgs)

find_package(catkin REQUIRED COMPONENTS
  message_generation  
  roscpp
  geometry_msgs
  actionlib_msgs
  sensor_msgs
  nav_msgs
  std_msgs
  std_srvs
  tf2_ros
  tf2_eigen
)

find_package(Boost REQUIRED COMPONENTS system)

add_message_files(
  DIRECTORY msg
  FILES
  PositionReference.msg
  ControlCommand.msg
  AttitudeReference.msg
  ControlOutput.msg
  DroneState.msg
  LogMessage.msg
  LogMessageControl.msg
  LogMessagePlanning.msg
  LogMessageDetection.msg
  DetectionInfo.msg
  Message.msg
  SwarmCommand.msg
  AttitudeTarget_replace.msg
  PositionTarget_replace.msg
  ArucoInfo.msg
  MultiDetectionInfo.msg
  MultiArucoInfo.msg
)

generate_messages(
  DEPENDENCIES
  actionlib_msgs
  geometry_msgs 
  sensor_msgs
  std_msgs
)

catkin_package(
  CATKIN_DEPENDS
  message_runtime
  actionlib_msgs
  geometry_msgs
  sensor_msgs
  std_msgs
)

include_directories(
  include
  ${catkin_INCLUDE_DIRS}
)


install(DIRECTORY include/${PROJECT_NAME}/
  DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
  FILES_MATCHING PATTERN "*.h"
)

install(DIRECTORY launch/
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)
